# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libqofono
pkgver=0.111
pkgrel=0
pkgdesc="A library for accessing the ofono daemon, and a Qt declarative plugin for it"
url="https://git.merproject.org/mer-core/libqofono/"
# armhf blocked by qt5-qtdeclarative
arch="all !armhf"
license="LGPL-2.1-or-later"
depends_dev="
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://github.com/sailfishos/libqofono/archive/$pkgver/libqofono-$pkgver.tar.gz"
options="!check" # Requires running Ofono

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove installed tests
	rm -r "$pkgdir"/opt
}

sha512sums="
ef42129fc551c49a8470af4eff1e966d3ac97a2c493e35b20cf6df8a46a4b36db3b5e1a6071077f21099a8fdf0619f3b751c4951f730dfc6c69a19e58f7f0821  libqofono-0.111.tar.gz
"
